From: Jasper St. Pierre Date: Tue, 28 Jan 2014 17:27:22 +0000 (-0500) Subject: appDisplay: Support the 'excluded-apps' key for app folders X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2864 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bb8397b9b167c95d6055fe172c1a644a7c1e2498;p=gnome-shell.git appDisplay: Support the 'excluded-apps' key for app folders https://bugzilla.gnome.org/show_bug.cgi?id=723179 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index ec71ad00a..748537d87 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1075,8 +1075,12 @@ const FolderIcon = new Lang.Class({ this.view.removeAll(); + let excludedApps = this._folder.get_strv('excluded-apps'); let appSys = Shell.AppSystem.get_default(); let addAppId = (function addAppId(appId) { + if (excludedApps.indexOf(appId) >= 0) + return; + let app = appSys.lookup_app(appId); if (!app) return;